<%--
  Created by IntelliJ IDEA.
  User: WIzarder
  Date: 2021/5/31
  Time: 15:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
        <%  //四个域对象设置同样的key，获取时按照范围小的优先获取
            pageContext.setAttribute("key1","pageContext");
            request.setAttribute("key1","request");
            session.setAttribute("key1","session");
            application.setAttribute("key1","application");
        %>
        ${key1}
</body>
</html>
